#ifndef __BSP_SEG_DRIVER_H
#define __BSP_SEG_DRIVER_H



enum
{
    UNIT_LOGO_PSI  = 0x00,	
    UNIT_LOGO_BAR  = 0x01,
    UNIT_LOGO_KPA  = 0x02,	
    UNIT_LOGO_KGCM = 0x03,
    UNIT_LOGO_MAX,
    UNIT_LOG_NULL,
};


enum
{
    TYPE_LOGO_CAR  = 0x00,
    TYPE_LOGO_ZXC  = 0x01,	
    TYPE_LOGO_MTC  = 0x02,	
    TYPE_LOGO_QIQ  = 0x03,
    TYPE_LOG_NULL  = 0x04,
    TYPE_LOGO_MAX,
};




#define	SEG_NH_A	0x01
#define	SEG_NH_B	0x04
#define	SEG_NH_C	0x20
#define	SEG_NH_D	0x40
#define	SEG_NH_E	0x10
#define	SEG_NH_F	0x02
#define	SEG_NH_G	0x08


extern code uint8_t seg_tab_L1[];
extern code uint8_t seg_tab_h1[];

extern data	uint8_t seg_buf[14];
extern bit f_on_animation_once;





void seg_set1(uint8_t val, segN);
void seg_h_clean();
void seg_dis_h(uint8_t val_h, uint8_t val_m, uint8_t val_l);
void seg_L_clean();
void seg_num_L1(uint8_t val);
void seg_num_L3(uint8_t val);
void seg_num_L2(uint8_t val);
void seg_dis_L(uint8_t val_h, uint8_t val_m, uint8_t val_l);
void seg_clean_all();


void on_animation_init();
void on_off_animation();

// void type_buf_set(uint8_t type);

void seg_H_dot_set(uint8_t dot);
void seg_L_dot_set(uint8_t dot);

void unit_buf_set(uint8_t sel);
void type_sel(uint8_t sel);

#endif
